import http from '@/utils/http'



/**
 * 获取模板 
 * @returns 
 */
 export function getSymptom (){
    return http.get('./symptom.json') 
}

/**
 * 获取所有症状类别
 * @returns 
 */
 export function getAllSymptom (baseUrl){
    return http.get(`${baseUrl?baseUrl:""}/api/symptom/getAllSymptom`) 
}

/**
 * 批量添加症状类别
 * @returns 
 */
 export function bulkCreateSymptom (baseUrl,params){
    return http.post(`${baseUrl?baseUrl:""}//api/symptom/bulkCreateSymptom`,params) 
}
/**
 * 根据title获取症状
 * @returns 
 */
export function getSymptomByTitle (baseUrl,params){
    return http.post(`${baseUrl?baseUrl:""}/api/symptom/getSymptomByTitle`,params) 
}